-
Notifications
You must be signed in to change notification settings - Fork 20
Fix permissions for included workflows #58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix permissions for included workflows #58
Conversation
Test Results 1 files 2 suites 3m 1s ⏱️ Results for commit d1e2a9e. |
Test jobs for commit d1e2a9e |
mwasilew
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good, but maybe the commits should be squashed?
.github/workflows/build-on-pr.yml
Outdated
| checks: write # debos.yml? | ||
| contents: read # debos.yml ? | ||
| packages: read # debos.yml? | ||
| pull-requests: write # debos.yml? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this comes from EnricoMi reporting action.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yes, forgot to update comments in this file; fixed in latest push
.github/workflows/build-daily.yml
Outdated
| # implicitely set all other permissions to none | ||
| permissions: | ||
| contents: read | ||
| contents: read # debos.yml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's missing the permissions for the test and test reporting actions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fixed in a dedicated commit separate from the cleanups
Signed-off-by: Loïc Minier <[email protected]>
Signed-off-by: Loïc Minier <[email protected]>
Permissions in job are probably cleaner, but since we're mainly including this workflow from others, it's easier to find the intended permissions in this way. Plus other workflows currently also manage their permissions at the workflow rather than job level. Also update permissions to more complete list. Signed-off-by: Loïc Minier <[email protected]>
Signed-off-by: Loïc Minier <[email protected]>
Signed-off-by: Loïc Minier <[email protected]>
d1e2a9e to
bcdc331
Compare
Test jobs for commit bcdc331 |
Cleanup of workflows permission handling as to identify and fix a
missing permission for build-daily that now uses test.yml.